package com.ruoyi.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.BasisLocalReferenceMapper;
import com.ruoyi.domain.BasisLocalReference;
import com.ruoyi.service.IBasisLocalReferenceService;

/**
 * 本地参考信号Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-25
 */
@Service
public class BasisLocalReferenceServiceImpl implements IBasisLocalReferenceService 
{
    @Autowired
    private BasisLocalReferenceMapper basisLocalReferenceMapper;

    /**
     * 查询本地参考信号
     * 
     * @param id 本地参考信号主键
     * @return 本地参考信号
     */
    @Override
    public BasisLocalReference selectBasisLocalReferenceById(Long id)
    {
        return basisLocalReferenceMapper.selectBasisLocalReferenceById(id);
    }

    /**
     * 查询本地参考信号列表
     * 
     * @param basisLocalReference 本地参考信号
     * @return 本地参考信号
     */
    @Override
    public List<BasisLocalReference> selectBasisLocalReferenceList(BasisLocalReference basisLocalReference)
    {
        return basisLocalReferenceMapper.selectBasisLocalReferenceList(basisLocalReference);
    }

    /**
     * 新增本地参考信号
     * 
     * @param basisLocalReference 本地参考信号
     * @return 结果
     */
    @Override
    public int insertBasisLocalReference(BasisLocalReference basisLocalReference)
    {
        basisLocalReference.setCreateTime(DateUtils.getNowDate());
        return basisLocalReferenceMapper.insertBasisLocalReference(basisLocalReference);
    }

    /**
     * 修改本地参考信号
     * 
     * @param basisLocalReference 本地参考信号
     * @return 结果
     */
    @Override
    public int updateBasisLocalReference(BasisLocalReference basisLocalReference)
    {
        return basisLocalReferenceMapper.updateBasisLocalReference(basisLocalReference);
    }

    /**
     * 批量删除本地参考信号
     * 
     * @param ids 需要删除的本地参考信号主键
     * @return 结果
     */
    @Override
    public int deleteBasisLocalReferenceByIds(Long[] ids)
    {
        return basisLocalReferenceMapper.deleteBasisLocalReferenceByIds(ids);
    }

    /**
     * 删除本地参考信号信息
     * 
     * @param id 本地参考信号主键
     * @return 结果
     */
    @Override
    public int deleteBasisLocalReferenceById(Long id)
    {
        return basisLocalReferenceMapper.deleteBasisLocalReferenceById(id);
    }
}
